package com.gitee.chili.leisure.service;

import com.gitee.chili.leisure.Callback;
import com.gitee.chili.leisure.ResponseResult;
import com.gitee.chili.leisure.domain.dto.RequestModel;

import java.util.function.Supplier;

/**
 * ITerminalService
 *
 * @author week solider
 * @since 2020-07-24
 */
public interface IGameHandleService {

    <T> void request(Supplier<RequestModel> supplier, Callback<ResponseResult<T>> callback);

    default <T> void request(Supplier<RequestModel> supplier) {
         request(supplier, null);
    }

}
